package com.jiahua.user.biz.service.impl;

import java.util.List;

import com.jiahua.user.biz.dao.AddressDao;
import com.jiahua.user.biz.model.Address;
import com.jiahua.user.biz.service.AddressService;

public class AddressServiceImpl implements AddressService {

	AddressDao addressDao;

	public void setAddressDao(AddressDao addressDao) {
		this.addressDao = addressDao;
	}

	@Override
	public boolean saveAddress(Address address) {
		return addressDao.saveAddress(address);
	}

	@Override
	public boolean deleteAddress(String id) {
		return addressDao.deleteAddress(id);
	}

	@Override
	public List<Address> getListAddress(int topNum) {

		return addressDao.getListAddress(topNum);
	}

	@Override
	public List<Address> getListAllAddress() {
		return addressDao.getListAllAddress();
	}

}
